package com.cz;

import com.cz.ioc.container.MyIocContainer;
import com.cz.test.OrderService;
import com.cz.test.TestService;

/**
 * @version 1.0.0
 */
public class Boot {
    public static void main(String[] args) {
        MyIocContainer myIocContainer = new MyIocContainer();
        TestService t = myIocContainer.getEntity("testService");
        String hello = t.echo("hello");
        System.out.println(hello);

        OrderService orderService = myIocContainer.getEntity("orderService2");
        orderService.addOrder("xxx");
    }
}
